const routes = [
  {
    path: '/',
    redirect: '/index' // 自定义属性，重定向到目标页面 router.path
  },
  {
    path: '/index',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index'),
    meta: {
      title: '首页',
      show: false,
      // keepAlive: true
    }
  },
  {
    path: '/index/earnings',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/earnings'),
    meta: {
      title: '收益明细',
      show: true
    }
  },
  {
    path: '/index/earnings/today',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/today'),
    meta: {
      title: '当日收益',
      show: true
    }
  },
  // team 团队管理


  {
    path: '/index/team',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/team'),
    meta: {
      title: '团队管理',
      show: true
    }
  },
  {
    path: '/index/withdraw',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/withdraw'),
    meta: {
      title: '提现记录',
      show: true
    }
  },
  {
    path: '/index/search',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/search'),
    meta: {
      title: '提现记录',//搜索
      show: true
    }
  },
  {
    path: '/index/apply',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/apply'),
    meta: {
      title: '提现申请',//搜索
      show: false
    }
  },
  {
    path: '/index/message',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/message'),
    meta: {
      title: '消息中心',
      show: true
    }
  },
  {
    path: '/index/text',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/text'),
    meta: {
      title: '文本通知详情页',
      show: true
    }
  },
  {
    path: '/index/dynamic',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/dynamic'),
    meta: {
      title: '收益动态',
      show: true
    }
  },
  {
    path: '/index/often',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/often'),
    meta: {
      title: '常见问题',
      show: true
    }
  },
  {
    path: '/index/industry',
    component: () => import(/* webpackChunkName: "index" */ '@/views/index/industry'),
    meta: {
      title: '行业前瞻',
      show: true
    }
  },


  // binding
  {
    path: '/binding',
    component: () => import(/* webpackChunkName: "binding" */ '@/views/binding'),
    meta: {
      title: '绑定',
      // keepAlive: true
    }
  },
  // equipment
  {
    path: '/equipment',
    component: () => import(/* webpackChunkName: "equipment" */ '@/views/equipment'),
    meta: {
      title: '设备',
      // keepAlive: true
    }
  },
  // equipment
  {
    path: '/equipment/admin',
    component: () => import(/* webpackChunkName: "equipment" */ '@/views/equipment/admin'),
    meta: {
      title: '管理分组',
      show: true
    }
  },
  {
    path: '/equipment/add',
    component: () => import(/* webpackChunkName: "equipment" */ '@/views/equipment/add'),
    meta: {
      title: '添加节点',
      show: true
    }
  },
  {
    path: '/equipment/node',
    component: () => import(/* webpackChunkName: "equipment" */ '@/views/equipment/node'),
    meta: {
      title: '节点详情',
      show: true
    }
  },


  {
    path: '/equipment/ai',
    component: () => import(/* webpackChunkName: "equipment" */ '@/views/equipment/ai'),
    meta: {
      title: 'AI助手',
      show: true
    }
  },


  // my
  {
    path: '/my',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my'),
    meta: {
      title: '我的',
      // keepAlive: true
    }
  },

  {
    path: '/my/about',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my/about'),
    meta: {
      title: '关于我们',
      show: true
    }
  },


  {
    path: '/my/order',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my/order'),
    meta: {
      title: '其它设置',
      show: true
    }
  },
  {
    path: '/my/updatePassword',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my/updatePassword'),
    meta: {
      title: '修改密码',
      show: true
    }
  },
  {
    path: '/my/agreement',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my/agreement'),
    meta: {
      title: '用户协议',
      show: true
    }
  },


  {
    path: '/my/back',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my/back'),
    meta: {
      title: '意见反馈',
      show: true
    }
  },

  {
    path: '/my/record',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my/record'),
    meta: {
      title: '提现记录',
      show: true
    }
  },

  {
    path: '/my/realName',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my/realName'),
    meta: {
      title: '实名认证',
      show: true
    }
  },

  {
    path: '/my/address',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my/address'),
    meta: {
      title: '收货地址',
      show: true
    }
  },

  {
    path: '/my/editAddress',
    component: () => import(/* webpackChunkName: "my" */ '@/views/my/editAddress'),
    meta: {
      title: '添加地址',
      show: true
    }
  }


];
export default routes;
